﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

class CMoveSprite
{

    Random rd = new Random();
    int x = 0, y = 0;
    public int GetX()
    {
        x = rd.Next(200, 850);
        return x;
    }


    public void Update(int x, int y)
    {
        y += 2;
        if (y > 700)
        {
            y = 700;
            x -= 2;
        }
        if (x < -200)
            x = -200;
    }

    public void Draw(SpriteBatch sb)
    {
        
    }
}
